@extends('admin.layouts.app')
@section('css')
  <link href="{{asset('assets/plugins/responsive-table/css/rwd-table.min.css')}}" rel="stylesheet" type="text/css" media="screen">
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                                

								<h4 class="page-title">Responsive Table</h4>
								<ol class="breadcrumb">
									<li>
										<a href="#">Ubold</a>
									</li>
									<li>
										<a href="#">Tables</a>
									</li>
									<li class="active">
										Responsive Table
									</li>
								</ol>
							</div>
						</div>
						
						
						
						<div class="row">
							<div class="col-sm-12">
								<div class="card-box">
								<div class="row">
			                        	<div class="col-sm-8">
			                        		<form role="form">
			                                    <div class="form-group contact-search m-b-30">
			                                    	<input type="text" id="search" class="form-control" placeholder="Search...">
			                                        <button type="submit" class="btn btn-white"><i class="fa fa-search"></i></button>
			                                    </div> <!-- form-group -->
			                                </form>
			                        	</div>
			                        	<div class="col-sm-4">
<a  class="btn btn-default btn-md waves-effect waves-light m-b-30" href="{{url('zadmin/decorate/create')}}"><i class="md md-add"></i> 添加</a>
			                        	</div>
			                        </div>	
									
									<div class="table-rep-plugin">
										<div class="table-responsive" >
											<table  class="table  table-striped">
												<thead>
													<tr>
	<th>ID</th>
	<th>档次名</th>
	<th>价格</th>
	<th>图片</th>
	
	<th>操作</th>
													</tr>
												</thead>
												<tbody>
                        @foreach($list as $v)  
							<tr>
								<th>{{$v->id}}</th>
								<th>{{$v->name}}</th>
								<td>{{$v->price}}</td>
								<td><img src="{{$v->pic}}" width="35" /></td>
								
								
								
									
														
									
									
				
									<td>
										<a class="btn btn-sm btn-default" href="{{url('zadmin/decorate/'.$v->id.'/edit')}}">修改</a>
	<a class="btn btn-sm btn-danger" href="{{url('zadmin/decorate',$v->id)}}" data-method="delete" 
  data-token="{{csrf_token()}}" data-confirm="确定删除吗?">
<span class="btn-label">
  <i class="md md-close"></i>
</span>删除</a>

										
								</tr>
                        @endforeach
													
								</tbody>
							</table>
						</div>
{{$list->links()}}
									</div>

								</div>
							</div>
						</div>
						<!-- end row -->
 @endsection 
               
         

    @section('js')
        <!-- responsive-table--> 
        <script src="{{asset('assets/plugins/responsive-table/js/rwd-table.min.js')}}" type="text/javascript"></script>
    @endsection    

